package com.dxt.dao;

import com.dxt.model.BusiCodeBean;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BusiCodeBeanDao {

    @Select("SELECT * FROM DXT_SYS_BUSI_CODE WHERE IS_DELETE = 0")
    @Results({
        @Result(property = "busiCode",      column = "busi_code"),
        @Result(property = "beanName",      column = "bean_name"),
        @Result(property = "remarks",   column = "remarks"),
        @Result(property = "isDelete",  column = "is_delete"),
        @Result(property = "url",   column = "url")
    })
    List<BusiCodeBean> getAllBusiCodeBeans();

}
